<?phpnamespace app\index\controller;use app\common\controller\Base;use app\common\model\Articles;use app\common\service\ArticleService;use app\common\service\SysConfigService;use app\common\util\GetuiUtil;use app\common\util\HuabanPic;class Index extends Base{    use GetuiUtil,HuabanPic;    protected $isPublic = 'index';    public function index()    {        $a = new Articles();        $arts = $a::all(['status'=>99],'User');        if ($arts){            $this->assign('articles',$arts);        }        ArticleService::getHotArticle();        return $this->fetch();    }    public function test()    {        SysConfigService::delAppBaseConfigs();    }}